<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@include file="common.jsp"%>
<div id="content_right">
<script type="text/javascript">
	function isChanged() {
		return confirm('确认修改?');
	}
</script>

	<p id="whereami">
	</p>
	
	<form action="deptUpdateAction?deptId=${deptId }" method="post" name="form2" onsubmit="return isChanged()">
	
		<TABLE class=table cellSpacing=1>
		<h1><font color="red">${message }</font></h1>
			<TBODY>
				<s:iterator value="dlist" var="Department">
					
					<TR class=row2 onmouseover=this.className = 'row1';onmouseout=this.className = 'row2';>
						<TD vAlign=center align=left></TD>
						<TD vAlign=center align=left>
							部门名称
						</TD>
						<TD vAlign=center align=left>
							<input type="text" name=dept.deptName value="<s:property value="#Department.deptName" />"/>
						</TD>
						<TD vAlign=center align=left></TD>
					</TR>
					
					<TR class=row2 onmouseover=this.className = 'row1';onmouseout=this.className = 'row2';>
						<TD vAlign=center align=left></TD>
						<TD vAlign=center align=left>
							管理人
						</TD>
						<TD vAlign=center align=left>
							
							<s:select name="dept.employee.empId" list="elist" listKey="empId" listValue="empName" theme="simple"></s:select>						
						</TD>
						<TD vAlign=center align=left></TD>
					</TR>
					<TR class=row2 onmouseover=this.className = 'row1';onmouseout=this.className = 'row2';>
						<TD vAlign=center align=left></TD>
						<TD vAlign=center align=left>
							电话号码
						</TD>
						<TD vAlign=center align=left>
							<input type="text" name=dept.deptTel value="<s:property value="#Department.deptTel" />"/>
						</TD>
						<TD vAlign=center align=left></TD>
					</TR>
					
					<TR class=row2 onmouseover=this.className = 'row1';onmouseout=this.className = 'row2';>
						<TD vAlign=center align=left></TD>
						<TD vAlign=center align=left>
							手机号码
						</TD>
						<TD vAlign=center align=left>
							<input type="text" name=dept.deptMobile value="<s:property value="#Department.deptMobile" />"/>
						</TD>
						<TD vAlign=center align=left></TD>
					</TR>
					
					<TR class=row2 onmouseover=this.className = 'row1';onmouseout=this.className = 'row2';>
						<TD vAlign=center align=left></TD>
						<TD vAlign=center align=left>
							邮箱
						</TD>
						<TD vAlign=center align=left>
							<input type="text" name=dept.deptFax value="<s:property value="#Department.deptFax" />"/>
						</TD>
						<TD vAlign=center align=left></TD>
					</TR>
					
					<TR class=row2 onmouseover=this.className = 'row1';onmouseout=this.className = 'row2';>
						<TD vAlign=center align=left></TD>
						<TD vAlign=center align=left>
							标签
						</TD>
						<TD vAlign=center align=left>
							<input type="text" name=dept.deptRemark value="<s:property value="#Department.deptRemark" />"/>
						</TD>
						<TD vAlign=center align=left></TD>
					</TR>
					
					<TR class=row2 onmouseover=this.className = 'row1';onmouseout=this.className = 'row2';>
						<TD vAlign=center align=left></TD>
						<TD vAlign=center align=left>
							状态
						</TD>
						<TD vAlign=center align=left>
							<s:property value="#Department.deptState" />
						</TD>
						<TD vAlign=center align=left></TD>
					</TR>
					
				</s:iterator>
				<tr>
					<td colspan="5" align="right">
						<input type="submit" class="button" value="更改" />
						<INPUT class="button" type="button" onclick="location='../dept/deptListAction'" value="返回">
					</td>
				</tr>
			</TBODY>


		</TABLE>

	</form>
	<p>
		&nbsp;
	</p>
	<p>
	</p>

</div>